
add_library(lwip_mbedtls STATIC
    ${lwipcore_SRCS}
    ${lwipcore4_SRCS}
    ${lwipapi_SRCS}
    ${lwipnetif_SRCS}
    ${lwipcontribportunix_SRCS}
    ${lwipaltcp_tls_SRCS}
)

target_include_directories(lwip_mbedtls PRIVATE 
    ${LWIP_INCLUDE_DIRS}
    ${ROOT_DIR}/mbedtls_conf
    ${MBEDTLS_DIR}/include
)

target_link_directories(lwip_mbedtls PRIVATE
    ${MBEDTLS_DIR}/build/library
)

target_link_libraries(lwip_mbedtls PRIVATE
    mbedtls
    mbedx509
    mbedcrypto
)